﻿<Window x:Class="XamlTune.Output"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Output" Height="512" Width="835"
    xmlns:AEdit="clr-namespace:AEdit;assembly=AEdit"
    Loaded="Window_Loaded"
        Closing="Window_Closing"
>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="300"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TabControl Name="tabControl1" Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" Margin="5,0,0,0" SelectedIndex="0">
            <TabItem Name="tabIitemContent" Header="Properties">
                <StackPanel Name="stackPanel1">
                    <DockPanel Height="24" >
                        <Button DockPanel.Dock="Right" Click="Button_Click">Save</Button>
                        <TextBox x:Name="tboutput"/>
                    </DockPanel>
                    <StackPanel Height="24" Orientation="Horizontal" HorizontalAlignment="Left">
                        <TextBlock Margin="0,0,10,0">Output format</TextBlock>
                        <RadioButton Name="rbWPF" Margin="0,0,10,0" >WPF</RadioButton>
                        <RadioButton Name="rbSilverlight" IsChecked="True">Silverlight</RadioButton>
                    </StackPanel>

                    <CheckBox Height="16" Name="cbRemoveDefaultValues" IsEnabled="True" IsChecked="True">Remove default values</CheckBox>
                    <CheckBox Height="16" Name="cbRemoveNull" IsEnabled="True" IsChecked="True">Remove x:Null</CheckBox>
					<CheckBox Height="16" Name="cbCanvasBoundingBox" IsChecked="False">Canvas as Path bounding box</CheckBox>
					<CheckBox Height="16" Name="cbExcludeCollapsedFromBoundingBox" IsChecked="False">Exclude collapsed elements from bounding box</CheckBox>
                    <CheckBox Height="16" Name="cbReplaceRectangleGeometry" IsChecked="True">Replace single RectangleGeometry with Rectangle</CheckBox>
                    <StackPanel Height="24" Orientation="Horizontal" HorizontalAlignment="Left">
                        <RadioButton Name="rbTransformInput" Margin="0,0,10,0" >Input window</RadioButton>
                        <RadioButton Name="rbTransformTextbox" IsChecked="True">Textbox</RadioButton>
                        <Button Height="23" Name="btnLaunch" Width="75" Click="btnLaunch_Click" Margin="10,0,0,0">Transform</Button>
                    </StackPanel>
                    <StackPanel Height="24" Orientation="Horizontal" HorizontalAlignment="Left">
                        <TextBlock>Zoom</TextBlock>
                        <Slider Height="21" Name="sliderZoom" Width="100" Margin="10,0,0,0" Maximum="5" Value="1" LargeChange="0.2" Minimum="0.001" ValueChanged="sliderZoom_ValueChanged" />
                    </StackPanel>
                    <!--<CheckBox Height="16" Name="cbLayoutTransform" IsEnabled="False">Convert LayoutTransform to path</CheckBox>
            <CheckBox Height="16" Name="cbRemoveEmptyCanvas" IsEnabled="False">Remove empty canvas</CheckBox>-->
                </StackPanel>
            </TabItem>
            <TabItem Name="tabIitemTreeview" Header="Treeview">
                <DockPanel>
                    <TextBox x:Name="infos" DockPanel.Dock="Bottom" Height="80"></TextBox>
                    <TreeView Name="treeView" Grid.Column="1" Grid.RowSpan="2" Margin="0" SelectedItemChanged="treeView_SelectedItemChanged">
                        <TreeView.ItemTemplate>
                            <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                                <ContentPresenter Content="{Binding Name}"/>

                            </HierarchicalDataTemplate>
                        </TreeView.ItemTemplate>
                    </TreeView>
                </DockPanel>
            </TabItem>
        </TabControl>
        <AEdit:TextControl x:Name="textControl" Grid.Row="1" Grid.Column="0" Margin="0,5,0,0" ></AEdit:TextControl>

        <StackPanel Grid.Row="1"  Name="stackPanel2" Orientation="Horizontal"></StackPanel>
        <DockPanel>
            <ScrollViewer Grid.Column="0" Grid.Row="0" Name="scrollViewer1" HorizontalScrollBarVisibility="Visible">                
                
            </ScrollViewer>
        </DockPanel>
        <GridSplitter Grid.Row="1" 
              HorizontalAlignment="Stretch" 
              VerticalAlignment="Top"
              ShowsPreview="true"
              Height="5"/>

        <GridSplitter Grid.Column="1" 
              HorizontalAlignment="Left" 
              VerticalAlignment="Stretch"
              ShowsPreview="true"
              Grid.RowSpan="2"
              Width="5"/>

    </Grid>
</Window>

